{include file="header.html"}
<title>账龄查询列表</title>
<script>
    $(function () {
        $('#bdate').datepicker({changeMonth: true, changeYear: true});
        $('#edate').datepicker({changeMonth: true, changeYear: true});
    });
</script>
<style>
	.select{
		width: 118px;
		height: 24px;
		line-height: 24px;
	}
</style>
<div id="rightTop">
	<p>账龄查询列表</p>
</div>
<div class="mrightTop" >
	<div class="fontl">
		<form id="select_from" method="get">
			<div class="left">
				<input type="hidden" name="app" value="aging"/>
				<input id='act' type="hidden" name="act" value="index"/>
			 <div>
					<select name="searchType" class="select" >
					{html_options options=$searchTypes selected=$searchType}
				</select>
				<input style="margin-left: 5px" class="queryInput3" type="text" value="{$smarty.get.bdate}" id="bdate"
					   name="bdate"/>
				 &nbsp;至&nbsp;<input class="queryInput3" type="text" value="{$smarty.get.edate}" id="edate"
						 name="edate"/>
			 </div>
				<select name="type" class="select">
					{html_options options=$types selected=$type}
				</select>


				<input type="submit" style="margin-left: 5px" class="formbtn" value="查询"/>

			</div>
		</form>
	</div>

	<div class="clear:both;"></div>
</div>
<div class="tdare">
	<table width="100%" cellspacing="0" class="dataTable" style="margin-top: 30px">
		<!--{if $agings}-->
		<tr class="tatr1">
			<td width="10px"></td>
			<td style="width: 80px">结算单位</td>
			<td >总结应收</td>
			<td >已收金额</td>

			<td  class="handler">操作</td>
		</tr>
		<!--{/if}-->
		<!--{foreach from=$agings item=aging}-->
		<tr class="tatr2">
			<td width="10px"></td>
			<td style="width: 80px">{$aging.UnitName}</td>
			<td >{$aging.YFCount}</td>
			<td >{$aging.YFPrice}</td>

			<td  class="handler">
				<a href="index.php?app=aging&amp;act=listmore&amp;id={$aging.UnitID}&amp;type={$type}&amp;searchType={$searchType}&amp;bdate={$bdate}&amp;edate={$edate}&amp;pageIndex={$page_info.curr_page}" >更多</a>
				<a href="index.php?app=aging&amp;act=detail&amp;id={$aging.UnitID}&amp;type={$type}&amp;searchType={$searchType}&amp;bdate={$bdate}&amp;edate={$edate}" >明细</a>
			</td>
		</tr>
		<!--{foreachelse}-->
		<tr class="no_data">
			<td colspan="4"><img style="width: 20%" src="themes/mall/default/styles/default/images/n.png"></td>
		</tr>
		<!--{/foreach}-->



	</table>
	<!--{if $agings}-->{include file=page.new.html}
	<div style="margin-top: 30px"></div>
	<!--{else}-->
	<div style="margin-top: 50px"></div>
	<!--{/if}-->
</div>

